const router = require('koa-router')()

router.prefix('/role')

router.get('/', async (ctx, next) => {
    let selectSql = "select * from roles";
    let result = await ctx.db.EXECUTE(selectSql);

    ctx.body = {
        status: 'ok',
        result: result
    }
})
module.exports = router
